module MoviesHelper
  
  def show_img(option = {})
    if option[:img].nil?
      return image_tag("/images/little_pic_1", :class => :pic) if option[:thumbnail] == :thumb
      return image_tag("/images/little_pic_2", :class => :pic) if option[:thumbnail] == :cover
    else
      return image_tag(option[:img].public_filename(option[:thumbnail]), :class => :pic)
    end
  end
  
end
